package com.study.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 用户礼物
 * </p>
 *
 * @author flwu
 * @since 2020-03-20
 */
@TableName("tbl_user_present")
public class UserPresent implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 礼物ID
     */
    private Long presentId;

    /**
     * 用户角色，1:生产；2:接收；3:评论
     */
    private Boolean role;

    /**
     * 是否上架
     */
    private Boolean isUp;

    /**
     * 制作人ID
     */
    private Long producerId;

    /**
     * 是否已读，0：否；1：是
     */
    private Boolean isRead;

    /**
     * 是否已弹新邮票提示，0：否；1：是
     */
    private Boolean isAlertNewStampTip;

    /**
     * 创建时间
     */
    private LocalDateTime createDatetime;

    /**
     * 最后更新时间
     */
    private LocalDateTime updateDatetime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public Long getPresentId() {
        return presentId;
    }

    public void setPresentId(Long presentId) {
        this.presentId = presentId;
    }
    public Boolean getRole() {
        return role;
    }

    public void setRole(Boolean role) {
        this.role = role;
    }
    public Boolean getUp() {
        return isUp;
    }

    public void setUp(Boolean isUp) {
        this.isUp = isUp;
    }
    public Long getProducerId() {
        return producerId;
    }

    public void setProducerId(Long producerId) {
        this.producerId = producerId;
    }
    public Boolean getRead() {
        return isRead;
    }

    public void setRead(Boolean isRead) {
        this.isRead = isRead;
    }
    public Boolean getAlertNewStampTip() {
        return isAlertNewStampTip;
    }

    public void setAlertNewStampTip(Boolean isAlertNewStampTip) {
        this.isAlertNewStampTip = isAlertNewStampTip;
    }
    public LocalDateTime getCreateDatetime() {
        return createDatetime;
    }

    public void setCreateDatetime(LocalDateTime createDatetime) {
        this.createDatetime = createDatetime;
    }
    public LocalDateTime getUpdateDatetime() {
        return updateDatetime;
    }

    public void setUpdateDatetime(LocalDateTime updateDatetime) {
        this.updateDatetime = updateDatetime;
    }

    @Override
    public String toString() {
        return "UserPresent{" +
            "id=" + id +
            ", userId=" + userId +
            ", presentId=" + presentId +
            ", role=" + role +
            ", isUp=" + isUp +
            ", producerId=" + producerId +
            ", isRead=" + isRead +
            ", isAlertNewStampTip=" + isAlertNewStampTip +
            ", createDatetime=" + createDatetime +
            ", updateDatetime=" + updateDatetime +
        "}";
    }
}
